Skip to content

Conversation

@zharinov
Copy link
Member

@zharinov zharinov commented Jan 7, 2026

Summary

  • Add builder pattern to complex structs: VM, PrintTracer, Compiler, Parser
  • Add fluent builder to config structs: Config, FuelLimits
  • Add semantic constructors to bytecode structs: TypeDef, Entrypoint, Call, Return, Trampoline, etc.
  • Make struct fields pub(crate) with getters for external access

Why

Enables composable struct construction while enforcing encapsulation. External consumers use builders/constructors; internal code can access fields directly via pub(crate).

@zharinov zharinov force-pushed the refactor/builder-pattern branch from 526394e to 5044cec Compare January 7, 2026 17:17
@zharinov zharinov enabled auto-merge (squash) January 7, 2026 17:18
@zharinov zharinov force-pushed the refactor/builder-pattern branch from 5044cec to 4b86e6e Compare January 7, 2026 17:21
@zharinov zharinov merged commit 48c0a80 into master Jan 7, 2026
4 checks passed
@zharinov zharinov deleted the refactor/builder-pattern branch January 7, 2026 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants